cc = gcc
program = test.sh
deps = $(shell find ./ -name "*.h")
src = $(shell find ./ -name "*.c")
obj = $(src:%.c=%.o) 
	 
$(program): $(obj)
	    $(cc) -o $(program) $(obj)
		 
%.o: %.c $(deps)
	    $(cc) -c $< -o $@
		 
clean:
	    rm -rf $(obj) $(program)
